package edu.chl.food_store.utility;

import edu.chl.food_store.entities.Product;

/**
 * CartItem:
 * Represents an item in the shopping cart (product/quantity).
 */
public class CartItem {

    //data values.
    private Product product;
    private int quantity;

    public CartItem(Product product) {
        this.product = product;
        quantity = 1;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
}
